import React, { Component } from 'react';
// import DataBinder from '@icedesign/data-binder';
import IceContainer from '@icedesign/container';
import LineChart from './components/LineChart';
import TableBox from './components/TableBox';
import BoardBox from './components/BoardBox';
import BoardGD from './components/BoardGD';

import './PublicOpinionWarning.scss';

export default class PublicOpinionWarning extends Component {
  static displayName = 'BusinessPerformance';

  constructor(props) {
    super(props);
    this.state = {
      fisrtChart:'fisrtChart',
      secondChart:'secondChart',
      FinanceValueData:[],
      SecurityVolumeData:[],
    };
  }

  componentDidMount() {
    this.NoRightkeyboard();
  }

  //屏蔽F12 右键
  NoRightkeyboard(){
    window.onload=function(){
      document.onkeydown=function(){
          var e=window.event||arguments[0];
          if(e.keyCode==123){
              return false;
          }else if((e.ctrlKey)&&(e.shiftKey)&&(e.keyCode==73)){
              return false;
          }
      };
      document.oncontextmenu=function(){
          return false;
      }
    }
  }

  render() {
    return (
      <div>
        <IceContainer style={{marginBottom:'15px',borderRadius:'0',padding:'0'}}>
          <div className="title-box">
            <div className="tl">
              <div className="kk"></div>
              融资融券
            </div>
          </div>
          <LineChart />
        </IceContainer>
        <IceContainer style={{marginBottom:'15px',borderRadius:'0',padding:'0'}}>
          <div className="title-box">
            <div className="tl">
              <div className="kk"></div>
              股票异动预警
            </div>
          </div>
          <TableBox />        
        </IceContainer>      
        <IceContainer style={{marginBottom:'15px',borderRadius:'0',padding:'0'}}>
          <div className="title-box">
            <div className="tl">
              <div className="kk"></div>
              举牌风险
            </div>
          </div>
          <BoardBox />
        </IceContainer>

        <IceContainer style={{marginBottom:'15px',borderRadius:'0',padding:'0'}}>
          <BoardGD />
        </IceContainer> 
        
      </div>
    );
  }
}
